<%@taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>

<logic:notPresent role="Customer,Employee,Admin,Manager">
    <tiles:insert definition=".mainLayout">
        <tiles:put name="content" type="String">
			<div style="text-align: left; padding: 10px; padding-top: ">
				Please <a href="login.jsp">login</a> first then you can change your account password.
			</div>
        </tiles:put>
    </tiles:insert>
</logic:notPresent>

<logic:present role="Customer">
    <tiles:insert definition=".customerLayout">
        <tiles:put name="content" value="/changePassword.zul"/>
    </tiles:insert>
</logic:present>

<logic:present role="Employee">
    <tiles:insert definition=".employeeLayout">
        <tiles:put name="content" value="/changePassword.zul"/>
    </tiles:insert>
</logic:present>

<logic:present role="Admin">
    <tiles:insert definition=".adminLayout">
        <tiles:put name="content" value="/changePassword.zul"/>
    </tiles:insert>
</logic:present>

<logic:present role="Manager">
    <tiles:insert definition=".manager">
        <tiles:put name="content" value="/changePassword.zul"/>
    </tiles:insert>
</logic:present>
